//
//  DrawView.m
//  drawHomeWork
//
//  Created by wukeng on 16/4/6.
//  Copyright © 2016年 wukeng. All rights reserved.
//

#import "DrawView.h"

@implementation DrawView


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    [self DrawCircleWithPoint:CGPointMake(10, 10) Withradius:rect.size.width/2*0.9];
    [self DrawCircleWithPoint:CGPointMake(80, 80) Withradius:15];
    [self DrawCircleWithPoint:CGPointMake(rect.size.width - 120, 80) Withradius:15];
    
}

-(void)DrawCircleWithPoint:(CGPoint)left
                Withradius:(CGFloat)radius{
    UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(left.x, left.y, radius*2, radius*2) cornerRadius:radius];
    path.lineWidth = 10;
    [path stroke];
    
}
-(void)drawCurve{
    
}

@end
